deltas: Use F_DUPFD_CLOEXEC properly
authorDan Nicholson <nicholson@endlessm.com>
Tue, 9 Aug 2016 18:46:30 +0000 (11:46 -0700)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 10 Aug 2016 10:54:46 +0000 (10:54 +0000)
commitc3c07a2d496f43cdda0a8f5617c6373d961f67df
tree18585ebd416c143b994a59660d8b1c70a71d0778
parent1e5ff71c498f85af209ccaf0eee3c4cff26f21ac
deltas: Use F_DUPFD_CLOEXEC properly

You need to supply an argument to F_DUPFD_CLOEXEC or fcntl will return
EINVAL. Use 3 as the minimum fd number as is standard.

Closes: #454
Closes: #448
Approved by: cgwalters
src/libostree/ostree-repo-static-delta-compilation.c